<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1">

    

    <title>
      解决Mac新文字漏洞软件崩溃问题 | XTCEL 
    </title>

    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    
      <meta name="author" content="Jack Yong">
    
    

    <meta name="description" content="恶作剧早上同事用QQ发了一段文字给我，内容为如下： 玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉王玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉">
<meta name="keywords" content="Mac,崩溃,QQ,漏洞">
<meta property="og:type" content="article">
<meta property="og:title" content="解决Mac新文字漏洞软件崩溃问题 | XTCEL">
<meta property="og:url" content="http://xtcel.com/2015/07/31/解决Mac新文字漏洞软件崩溃问题/index.html">
<meta property="og:site_name" content="XTCEL">
<meta property="og:description" content="恶作剧早上同事用QQ发了一段文字给我，内容为如下： 玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉王玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉">
<meta property="og:locale" content="zh-CN">
<meta property="og:image" content="http://o88f31ee3.bkt.clouddn.com/blog/image/png/zhihu_mac_textbug.png">
<meta property="og:updated_time" content="2018-01-11T08:53:23.425Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="解决Mac新文字漏洞软件崩溃问题 | XTCEL">
<meta name="twitter:description" content="恶作剧早上同事用QQ发了一段文字给我，内容为如下： 玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉王玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉">
<meta name="twitter:image" content="http://o88f31ee3.bkt.clouddn.com/blog/image/png/zhihu_mac_textbug.png">
    
    
    
      <link rel="icon" type="image/x-icon" href="/images/avatar.png">
    
    <link rel="stylesheet" href="/css/uno.css">
    <link rel="stylesheet" href="/css/highlight.css">
    <link rel="stylesheet" href="/css/archive.css">
    <link rel="stylesheet" href="/css/china-social-icon.css">

</head>
<body>

    <span class="mobile btn-mobile-menu">
        <i class="icon icon-list btn-mobile-menu__icon"></i>
        <i class="icon icon-x-circle btn-mobile-close__icon hidden"></i>
    </span>

    

<header class="panel-cover panel-cover--collapsed">


  <div class="panel-main">

  
    <div class="panel-main__inner panel-inverted">
    <div class="panel-main__content">

        
        <a href="/" title="link to homepage for XTCEL"><img src="/images/avatar.png" width="80" alt="XTCEL logo" class="panel-cover__logo logo" /></a>
        

        <h1 class="panel-cover__title panel-title"><a href="/" title="link to homepage">XTCEL</a></h1>
        <hr class="panel-cover__divider" />

        
        <p class="panel-cover__description">
          关注技术   热爱设计
        </p>
        <hr class="panel-cover__divider panel-cover__divider--secondary" />
        

        <div class="navigation-wrapper">

          <nav class="cover-navigation cover-navigation--primary">
            <ul class="navigation">

              
                
                <li class="navigation__item"><a href="/#blog" title="" class="blog-button">首页</a></li>
              
                
                <li class="navigation__item"><a href="/about" title="" class="">关于</a></li>
              
                
                <li class="navigation__item"><a href="/archive" title="" class="">归档</a></li>
              

            </ul>
          </nav>

          <!-- ----------------------------
To add a new social icon simply duplicate one of the list items from below
and change the class in the <i> tag to match the desired social network
and then add your link to the <a>. Here is a full list of social network
classes that you can use:

    icon-social-500px
    icon-social-behance
    icon-social-delicious
    icon-social-designer-news
    icon-social-deviant-art
    icon-social-digg
    icon-social-dribbble
    icon-social-facebook
    icon-social-flickr
    icon-social-forrst
    icon-social-foursquare
    icon-social-github
    icon-social-google-plus
    icon-social-hi5
    icon-social-instagram
    icon-social-lastfm
    icon-social-linkedin
    icon-social-medium
    icon-social-myspace
    icon-social-path
    icon-social-pinterest
    icon-social-rdio
    icon-social-reddit
    icon-social-skype
    icon-social-spotify
    icon-social-stack-overflow
    icon-social-steam
    icon-social-stumbleupon
    icon-social-treehouse
    icon-social-tumblr
    icon-social-twitter
    icon-social-vimeo
    icon-social-xbox
    icon-social-yelp
    icon-social-youtube
    icon-social-zerply
    icon-mail

-------------------------------->

<!-- add social info here -->



<nav class="cover-navigation navigation--social">
  <ul class="navigation">

    
      <!-- Github -->
      <li class="navigation__item">
        <a href="https://github.com/xtcel" title="Huno on GitHub">
          <i class='icon icon-social-github'></i>
          <span class="label">GitHub</span>
        </a>
      </li>
    

    <!-- China social icon -->
    <!--
    
      <li class="navigation__item">
        <a href="" title="">
          <i class='icon cs-icon-douban'></i>
          <span class="label">Douban</span>
        </a>
      </li>

      <li class="navigation__item">
        <a href="" title="">
          <i class='icon cs-icon-weibo'></i>
          <span class="label">Weibo</span>
        </a>
      </li>

    -->



  </ul>
</nav>



        </div>

      </div>

    </div>

    <div class="panel-cover--overlay"></div>
  </div>
</header>

    <div class="content-wrapper">
        <div class="content-wrapper__inner entry">
            

<article class="post-container post-container--single">

  <header class="post-header">
    
    <h1 class="post-title">解决Mac新文字漏洞软件崩溃问题</h1>

    

    <div class="post-meta">
      <time datetime="2015-07-31" class="post-meta__date date">2015-07-31</time> 

      <span class="post-meta__tags tags">

          

          
             &#8226; 标签:
            <font class="tags">
              <a class="tags-link" href="/tags/Mac/">Mac</a>, <a class="tags-link" href="/tags/QQ/">QQ</a>, <a class="tags-link" href="/tags/崩溃/">崩溃</a>, <a class="tags-link" href="/tags/漏洞/">漏洞</a>
            </font>
          

      </span>
    </div>
    
    

  </header>

  <section id="post-content" class="article-content post">
    <h4 id="恶作剧"><a href="#恶作剧" class="headerlink" title="恶作剧"></a>恶作剧</h4><p>早上同事用QQ发了一段文字给我，内容为如下： 玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉王玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉玉 当我点开这条QQ消息的时候，QQ瞬间就崩溃了！我还不知道怎么回事，重新打开了QQ查看刚才发过来的这条消息，QQ再次崩溃。怎么QQ崩溃啦我整个人都不好了，233…… 我上网查了一下，发现很多人都遇到了类似问题，原来这是一个新的Mac文字漏洞。</p>
<h4 id="探索"><a href="#探索" class="headerlink" title="探索"></a>探索</h4><p>以下是有人在知乎上提的问题：</p>
<p><img src="http://o88f31ee3.bkt.clouddn.com/blog/image/png/zhihu_mac_textbug.png" alt=""></p>
<p> 从浏览次数和关注人数来看，说明很多人都被调戏了！QQ的崩溃信息如下：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line"> Process: QQ [1588] Path: /Applications/QQ.app/Contents/MacOS/QQ Identifier: com.tencent.qq Version: 4.0.2 (18031) Code Type: X86 (Native) Parent Process: ??? [1][1] Responsible: QQ [1588]</span><br><span class="line"></span><br><span class="line">Date/Time: 2015-07-20 16:53:34.393 +0800 OS Version: Mac OS X 10.10.4 (14E46) Report Version: 11</span><br><span class="line"></span><br><span class="line">Time Awake Since Boot: 6300 seconds</span><br><span class="line"></span><br><span class="line">Crashed Thread: 2 Dispatch queue: NSTextCheckingOperationQueue :: NSOperation 0x7cab7510 (QOS: USER_INITIATED)</span><br><span class="line"></span><br><span class="line">Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000</span><br><span class="line"></span><br><span class="line">Application Specific Information: *** Terminating app due to uncaught exception &apos;NSInternalInconsistencyException&apos;, reason: &apos;condition &quot;must be there&quot;&apos;</span><br><span class="line"></span><br><span class="line">Application Specific Backtrace 1: 0 CoreFoundation 0x917b3c63 \_\_raiseError + 195 1 libobjc.A.dylib 0x95c7aa2a objc_exception_throw + 276 2 CoreFoundation 0x917b3b7d +[NSException raise:format:] + 141 3 DataDetectorsCore 0x9b8761e2 DDRaiseException + 67 4 DataDetectorsCore 0x9b8914d0 DDCrashv + 145 5 DataDetectorsCore 0x9b891503 DDCrash + 27 6 DataDetectorsCore 0x9b84c170 DDScannerScanQuery + 729 7 DataDetectorsCore 0x9b84ba6a DDScannerScanStringWithRange + 319 8 AppKit 0x93fb1f41 checkDataDetectors + 161 9 AppKit 0x93faf40a NSSpellCheckerCheckString + 16505 10 AppKit 0x93fab336 -[NSTextCheckingOperation main] + 162 11 Foundation 0x9b2b937e -[\_\_NSOperationInternal \_start:] + 770 12 Foundation 0x9b2b9071 -[NSOperation start] + 71 13 Foundation 0x9b2b8d8b \__NSOQSchedule_f + 213 14 libdispatch.dylib 0x95e61130 \_dispatch\_client_callout + 50 15 libdispatch.dylib 0x95e64d05 \_dispatch\_queue_drain + 1017 16 libdispatch.dylib 0x95e6699d \_dispatch\_queue_invoke + 186 17 libdispatch.dylib 0x95e63f89 \_dispatch\_root_queue_drain + 395 18 libdispatch.dylib 0x95e7363d \_dispatch\_worker_thread3 + 97 19 libsystem_pthread.dylib 0x9794c1da \_pthread\_wqthread + 724 20 libsystem_pthread.dylib 0x97949e2e start_wqthread + 30</span><br><span class="line"></span><br><span class="line">Thread 2 Crashed:: Dispatch queue: NSTextCheckingOperationQueue :: NSOperation 0x7cab7510 (QOS: USER_INITIATED) 0 com.apple.CoreFoundation 0x917b45f7 ***TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION*** + 7 1 com.apple.CoreFoundation 0x917b3f79 \_\_raiseError + 985 2 libobjc.A.dylib 0x95c7aa2a objc_exception_throw + 276 3 com.apple.CoreFoundation 0x917b3b7d +[NSException raise:format:] + 141 4 com.apple.datadetectorscore 0x9b8761e2 DDRaiseException + 67 5 com.apple.datadetectorscore 0x9b8914d0 DDCrashv + 145 6 com.apple.datadetectorscore 0x9b891503 DDCrash + 27 7 com.apple.datadetectorscore 0x9b84c170 DDScannerScanQuery + 729 8 com.apple.datadetectorscore 0x9b84ba6a DDScannerScanStringWithRange + 319 9 com.apple.AppKit 0x93fb1f41 checkDataDetectors + 161 10 com.apple.AppKit 0x93faf40a NSSpellCheckerCheckString + 16505 11 com.apple.AppKit 0x93fab336 -[NSTextCheckingOperation main] + 162 12 com.apple.Foundation 0x9b2b937e -[\_\_NSOperationInternal \_start:] + 770 13 com.apple.Foundation 0x9b2b9071 -[NSOperation start] + 71 14 com.apple.Foundation 0x9b2b8d8b \__NSOQSchedule_f + 213 15 libdispatch.dylib 0x95e61130 \_dispatch\_client_callout + 50 16 libdispatch.dylib 0x95e64d05 \_dispatch\_queue_drain + 1017 17 libdispatch.dylib 0x95e6699d \_dispatch\_queue_invoke + 186 18 libdispatch.dylib 0x95e63f89 \_dispatch\_root_queue_drain + 395 19 libdispatch.dylib 0x95e7363d \_dispatch\_worker_thread3 + 97 20 libsystem_pthread.dylib 0x9794c1da \_pthread\_wqthread + 724 21 libsystem_pthread.dylib 0x97949e2e start_wqthread + 30 \``\`</span><br></pre></td></tr></table></figure></p>
<h4 id="分析"><a href="#分析" class="headerlink" title="分析"></a>分析</h4><p> 从崩溃信息可以看到是在NSTextCheckingOperationQueue线程中崩溃的，这是一个执行文本检查的线程。 其实之前苹果就出过几次类似问题，比如”Fill:///“崩溃问题。都是DataDectorsCore.framework这个framework的问题， 这个库的主要作用是自带的拼写检测和特殊格式的信息（比如URL、电话号码、时间等）匹配都会触发 DataDectorsCore.framework。 我查找了”Fill:///“崩溃问题的解决方案，于是也尝试了同样的方案解决这个问题，果然不出所料的不再崩溃了！</p>
<h4 id="Debug"><a href="#Debug" class="headerlink" title="Debug"></a>Debug</h4><p><strong>解决崩溃问题的方法就是：</strong> 在终端运行以下两条命令：<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">sudo mv -v /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/Resources/com.apple.datadetectorscore.cache.urlifier.system /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/Resources/com.apple.datadetectorscore.cache.urlifier.system.backup</span><br><span class="line"></span><br><span class="line">sudo mv -v /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/Resources/com.apple.datadetectorscore.cache.full.asia.system /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/Resources/com.apple.datadetectorscore.cache.full.asia.system.backup</span><br></pre></td></tr></table></figure></p>

  </section>

  

<section class="post-comments">
  <div id="disqus_thread"></div>
  <script type="text/javascript">
      var disqus_shortname = 'xtcel'; 
      /* * * DON'T EDIT BELOW THIS LINE * * */
      (function() {
          var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
          dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
          (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
      })();
  </script>
  <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</section>


  
</article>


            <footer class="footer">

    <span class="footer__copyright">&copy; 2014-2015. | 由<a href="https://hexo.io/">Hexo</a>强力驱动 | 主题<a href="https://github.com/someus/huno">Huno</a></span>
    
</footer>
        </div>
    </div>

    <!-- js files -->
    <script src="/js/jquery.min.js"></script>
    <script src="/js/main.js"></script>
    <script src="/js/scale.fix.js"></script>
    

    

    <script type="text/javascript" src="//cdn.bootcss.com/mathjax/2.3/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            MathJax.Hub.Config({
                tex2jax: {inlineMath: [['[latex]','[/latex]'], ['\\(','\\)']]}
            });
        });
    </script>



    

    <script src="/js/awesome-toc.min.js"></script>
    <script>
        $(document).ready(function(){
            $.awesome_toc({
                overlay: true,
                contentId: "post-content",
            });
        });
    </script>


    
    
    <!--kill ie6 -->
<!--[if IE 6]>
  <script src="//letskillie6.googlecode.com/svn/trunk/2/zh_CN.js"></script>
<![endif]-->

</body>
</html>
